package com.wyz.saas.common.base

import androidx.appcompat.widget.Toolbar
import androidx.databinding.ViewDataBinding
import com.atom.module.mvvm.base.IViewModel
import com.wyz.saas.common.R


abstract class AbstractApiToolbarActivity<V : ViewDataBinding, VM : AbstractApiViewModel<*>> :
    AbstractApiActivity<V, VM>() {

    protected var mToolbar: Toolbar? = null


    override fun initViewBinding(binding: V?, viewModel: VM?) {
        super.initViewBinding(binding, viewModel)
        initToolbar(findViewById(R.id.tag_tool_bar))
    }

    open fun initToolbar(toolbar: Toolbar?) {
        mToolbar = toolbar
    }
}